/*
 * Description: 全屏loading
 * Author: wangyifei
 * DateCreated: 2024-04-01 11:38
 */

import { Button, Space } from 'antd';
import FullLoading from '@/components/FullLoading';

const FullLoadingView = () => {
	return (
		<Space>
			<Button
				type="primary"
				onClick={() => {
					FullLoading.loading();
					setTimeout(() => {
						console.log(FullLoading.hasLoading());
					}, 1000);
					setTimeout(() => {
						FullLoading.close();
					}, 2000);
				}}
			>
				open
			</Button>
			<Button
				type="primary"
				ghost
				onClick={() => {
					console.log(FullLoading.hasLoading());
				}}
			>
				hasLoading
			</Button>
		</Space>
	);
};

export default FullLoadingView;
